import request from '@/utils/request'

// 查询组件分析列表
export function listComponentAnalysis(query) {
  return request({
    url: '/business/componentAnalysis/list',
    method: 'get',
    params: query
  })
}

// 查询组件分析详细
export function getComponentAnalysis(id) {
  return request({
    url: '/business/componentAnalysis/' + id,
    method: 'get'
  })
}

// 新增组件分析
export function addComponentAnalysis(data) {
  return request({
    url: '/business/componentAnalysis',
    method: 'post',
    data: data
  })
}

// 修改组件分析
export function updateComponentAnalysis(data) {
  return request({
    url: '/business/componentAnalysis',
    method: 'put',
    data: data
  })
}

// 删除组件分析
export function delComponentAnalysis(id) {
  return request({
    url: '/business/componentAnalysis/' + id,
    method: 'delete'
  })
}


//查找相互作用力组件
export function queryComponentAnalysisList(data){
	return request({
		url: '/business/componentAnalysis/queryComponentAnalysisList',
		method: 'post',
		data: data
	})
}

//查找有相互作用力目标关系的组件
export function selectInteractionList(data){
	return request({
		url: '/business/componentAnalysis/selectInteractionList',
		method: 'post',
		data: data
	})
}